package com.palmgo.utils.drawer.model;


import com.palmgo.utils.drawer.basic.BeanReflect;

import java.util.ArrayList;
import java.util.List;

/**
 * 路段节点信息实体
 * 
 * @author tanqiyong
 *
 */
public class Segment {
	public String time;
	/** 变量:开始路段名,类型:String */
	public String startname = "";
	/** 变量:结束路段名,类型:String */
	public String endname = "";
	/** 变量:折线编码经纬度gcj02,类型:String */
	public String coords;
	@BeanReflect(to = "trafficlistBeans", key = "traffic", format = Traffic.class)
	public String trafficlist;
	/** 变量:子路段交通状态,类型:List<Traffic> */
	public List<Traffic> trafficlistBeans = new ArrayList<Traffic>();
	public String summarize;
	public String eventlist;

	/** 变量:道路位置点列表,类型:List<LatLng> */
	public List<LatLng> pts = new ArrayList<LatLng>();

	public String getStartname() {
		return startname;
	}

	public void setStartname(String startname) {
		this.startname = startname;
	}

	public String getEndname() {
		return endname;
	}

	public void setEndname(String endname) {
		this.endname = endname;
	}

	public String getCoords() {
		return coords;
	}

	public void setCoords(String coords) {
		this.coords = coords;
	}

	public String getSummarize() {
		return summarize;
	}

	public void setSummarize(String summarize) {
		this.summarize = summarize;
	}

	public String getEventlist() {
		return eventlist;
	}

	public void setEventlist(String eventlist) {
		this.eventlist = eventlist;
	}

	public List<LatLng> getPts() {
		return pts;
	}

	public void setPts(List<LatLng> pts) {
		this.pts = pts;
	}

	/**
	 * 交通信息体
	 * 
	 * @author tanqiyong
	 *
	 */
	public static class Traffic {
		/** 变量:交通状态字母A,B,C,类型:String */
		public String traffic_status;
		/** 变量:待着,类型:double */
		public double speed;
		/** 变量:TODO,类型:double */
		public double traveltime;
		
		/** 变量:路链的编码,可以是dti也可以是处理路网id,类型:String */
		private String linkCode;
		
		
		public String getTraffic_status() {
			return traffic_status;
		}

		public void setTraffic_status(String traffic_status) {
			this.traffic_status = traffic_status;
		}

		public double getTraveltime() {
			return traveltime;
		}

		public void setTraveltime(long traveltime) {
			this.traveltime = traveltime;
		}

		/**
		 * 获取属性 linkCode的值
		 * @return the linkCode : String
		 */
		public String getLinkCode() {
			return linkCode;
		}

		/**
		 * 设置属性linkCode的值，参数类型String
		 * @param linkCode the linkCode to set
		 */
		public void setLinkCode(String linkCode) {
			this.linkCode = linkCode;
		}
		
	}
}
